package com.qf.FinancialManagement.controller;

import com.qf.FinancialManagement.domain.SettlementImportDTO;
import com.qf.FinancialManagement.service.SettlementService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.qf.common.utils.Result;


import javax.validation.Valid;
import java.util.List;

/**
 * ---好运常在---
 *
 * @author ChengShuaiKe
 * @date 2025/9/6 0006
 * @desc
 */
@RestController
@RequestMapping("/tms/complete")
@Api(tags = "结算管理")
public class SettlementController {
    @Autowired
    private SettlementService settlementService;

    @PostMapping("/import")
    @ApiOperation("批量导入结算数据")
    public Result importData(@Valid @RequestBody List<SettlementImportDTO> importList) {
        // 调用服务层处理导入逻辑
        return settlementService.batchImport(importList);
    }
}
